#include"process.h"
#include<stdio.h>
#include<string.h>
#include<unistd.h>


#define NUM 101
#define STYLE '='
void Process()
{
	char arr[NUM];
	char *able="|/-\\";
	memset(arr,'\0',sizeof(arr));
	int i=0;
	while(i<=100)
	{
		printf("[%-100s][%d%%][%c]\r",arr,i,able[i%4]);
		fflush(stdout);
		arr[i]=STYLE;
		i++;
		if(i==NUM)
		{
			arr[i-1]='=';
			break;
		}
		else
		{
			arr[i]='>';
		}
		usleep(20000);
			
	}
	printf("\r\n");
}





